cmake_minimum_required(VERSION 3.9)
project(face_detect)

set(CMAKE_CXX_STANDARD 11)

find_package(OpenCV REQUIRED)

add_subdirectory(/home/fanfan/dlib-19.9/dlib dlib_build)

add_library(face_detect SHARED face_detect.h face_detect.cpp)

target_link_libraries(face_detect dlib::dlib)
target_link_libraries(face_detect ${OpenCV_LIBS})